<template>
	<view>
		<login v-if='model' @closeMain='closeMain' :kind='kind'></login>
		<loginSms v-else @closeMain='closeMain' :kind='kind'></loginSms>
	</view>
</template>

<script>
	export default {
		onLoad: function(option) { //option为object类型，会序列化上个页面传递的参数
			console.log(option); //打印出上个页面传递的参数。
			this.kind = option.kind
		},
		data() {
			return {
				kind:'',
				model:true//判断界面，默认true login
			}
		},
		methods: {
			closeMain(val){
				this.model = val;
				console.log(this.model);
			}
		}
	}
</script>

<style>

</style>
